package com.example.hellostarter.service;

import com.example.hellostarter.properties.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName: HelloService
 * @Description:
 * @Date 2024/05/08 09:47
 * @Author songshaoqiu
 **/
public class HelloService {
    @Autowired
    HelloProperties helloProperties;

    public String sayHello(String userName){
        return helloProperties.getPrefix()+":"+userName+">"+helloProperties.getSuffix();
    }
}
